package com.founder.bdyx.modules.sys.mapper;

import com.founder.bdyx.core.mapper.MyMapper;
import com.founder.bdyx.modules.sys.model.ApplyInfo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplyInfoMapper extends MyMapper<ApplyInfo> {
    List<ApplyInfo> getAllInfo(@Param("keyword") String keyword, @Param("paystatus") String paystatus);

    List<ApplyInfo> getPickUpAll(@Param("keyword") String keyword, @Param("paystatus") String paystatus);

    List<ApplyInfo> getSendAll(@Param("keyword") String keyword, @Param("paystatus") String paystatus, @Param("isPrint") String isPrint);

    Page<ApplyInfo> getClosedAll(@Param("keyword") String keyword, @Param("paystatus") String paystatus);

    List<ApplyInfo> getAllForFinish(@Param("keyword") String keyword, @Param("transType") String transType);

    List<ApplyInfo> getAllPayOrder(@Param("paystatus")String paystatus, @Param("noticeflag") String noticeflag);

    List<ApplyInfo> getAllSendOrPickUp(@Param("paystatus")String paystatus);

    ApplyInfo getByAppId(@Param("appid") String appId);

    ApplyInfo getById(@Param("id") Integer id);

    int updatePayOrder(ApplyInfo applyInfo);

    int updateNoticeById(@Param("id") Integer id, @Param("randomCode") String randomCode);

    int updateLogisticsNoById(@Param("logisticsNo") String logisticsNo, @Param("id") Integer id);

    int updatePickUpNoById(@Param("logisticsNo") String logisticsNo, @Param("id") Integer id);

    int updateApplyInfo(ApplyInfo applyInfo);

    int updateShareFlag(ApplyInfo applyInfo);

    int updatePrepayId(ApplyInfo applyInfo);

    int updateExecOrderNum(ApplyInfo applyInfo);
}